﻿from pynput.keyboard import Key,Controller #from是来自于模块中某个功能
import time  #导入时间模块                                    
while True:
    keyboard=Controller()
    boom=input('请输入你想轰炸的内容：')
    num=int(input('输入要轰炸的次数：'))
    time.sleep(3)      #五秒内光标移动到微信聊天界面
    for i in range(num):
        keyboard.type(boom)
        keyboard.press(Key.enter)
        keyboard.release(Key.enter)
    
     





